class CreateCadastroContatoLogradouros < ActiveRecord::Migration
  def self.up
    create_table :logradouro do |t|
      t.string :nome, :limit => 72, :null => false
      t.string :complemento, :limit => 104, :null => true
      t.string :cep, :limit => 8, :null => false
      t.string :situacao, :limit => 3, :null => false
      t.integer :tipo_logradouro_id, :null => false
      t.integer :bairro_id, :null => false
      t.timestamps
    end
  end

  def self.down
    drop_table :logradouro
  end
end
